<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateWebconfigTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('webconfig', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->comment('网站名称');
            $table->string('url')->comment('网站网址');
            $table->string('logo')->comment('网站logo');
            $table->string('icp')->comment('网站备案号');
            $table->enum('status',[1,2])->notNULL()->default('1')->comment('网站开关');
            $table->string('title')->comment('网站标题');
            $table->string('keywords')->comment('网站关键词');
            $table->string('desc')->comment('网站描述');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('webconfig');
    }
}
